// defineConfig 定义配置
const {
	defineConfig
} = require("@vue/cli-service");
module.exports = defineConfig({
	transpileDependencies: true,
	//代理转发以/api开头的url
	devServer: {
		host: '0.0.0.0', // can be overwritten by process.env.HOST
		port: 8083,
		proxy: {
			"/api": {
				// target: "https://shsnum.xyz",
				target: "http://127.0.0.1:8080",
				pathRewrite: {
					"^/api": "",
				},
			},
			"/cht": {
				target: "https://naotan.asia/api",
				pathRewrite: {
					"^/cht": "",
				},
			},
			"wyy": {
				target: "http://openapi.music.163.com",
				pathRewrite: {
					"^/wyy": "",
				},
			},
		},
	},
});